﻿using System.Data.Entity;

namespace Evento.Models
{
    public class EventoDB : DbContext
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="EventoDB"/> class.
        /// </summary>
        public EventoDB()
            : base("eventodbsql")
        {
            
        }

        /// <summary>
        /// Gets or sets the events collection.
        /// </summary>
        /// <value>
        /// The events collection.
        /// </value>
        public DbSet<Event> Events { get; set; }

        /// <summary>
        /// Gets or sets the places collection.
        /// </summary>
        /// <value>
        /// The places collection.
        /// </value>
        public DbSet<Place> Places { get; set; }
    }
}
